CC = g++ -O3 -march=opteron -m64 -mfpmath=sse -funroll-loops 
OBJECTS = toolsDPC.o ScanDataDPC.o pocsDPC.o P1hilbertDPC.o P2compactDPC.o P3aprioriDPC.o P4fprojectDPC.o P5nonnegDPC.o
pocs: $(OBJECTS)
	$(CC) $(OBJECTS) -o bin/exec/pocsDPC
toolsDPC.o: toolsDPC.cpp pocsDPC.h ScanDataDPC.h includesDPC.h
	$(CC) -c toolsDPC.cpp
ScanDataDPC.o: ScanDataDPC.h ScanDataDPC.cpp includesDPC.h
	$(CC) -c ScanDataDPC.cpp
pocsDPC.o: pocsDPC.h pocsDPC.cpp includesDPC.h
	$(CC) -c pocsDPC.cpp
P1hilbertDPC.o: pocsDPC.h P1hilbertDPC.cpp includesDPC.h
	$(CC) -c P1hilbertDPC.cpp
P2compactDPC.o: pocsDPC.h P2compactDPC.cpp includesDPC.h
	$(CC) -c P2compactDPC.cpp
P3aprioriDPC.o: pocsDPC.h P3aprioriDPC.cpp includesDPC.h
	$(CC) -c P3aprioriDPC.cpp
P4fprojectDPC.o: pocsDPC.h P4fprojectDPC.cpp includesDPC.h
	$(CC) -c P4fprojectDPC.cpp
P5nonnegDPC.o: pocsDPC.h P5nonnegDPC.cpp includesDPC.h
	$(CC) -c P5nonnegDPC.cpp

clean:
	rm *.o bin/exec/pocs *~
cleanobj:
	rm *.o
